package com.newlink.building.userinfo.mvp

import com.newlink.building.common_base.base.BasePresenter
import com.newlink.building.common_base.ext.ss
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_PropertyManagementContract
import com.newlink.building.userinfo.mvp.model.Module_UserInfo_PropertyManagementModel

/**
 * Created by xiaodong on 2025/3/11.
 */
class Module_UserInfo_PropertyManagementPresenter :
    BasePresenter<Module_UserInfo_PropertyManagementContract.Model, Module_UserInfo_PropertyManagementContract.View>(),
    Module_UserInfo_PropertyManagementContract.Presenter {

    override fun createModel(): Module_UserInfo_PropertyManagementContract.Model = Module_UserInfo_PropertyManagementModel()

    override fun getPropertyUserList(token: String, prjId: String, name: String) {
        mModel?.getPropertyUserList(token, prjId, name)?.ss(mModel, mView) {
            it?.data?.let { data ->
                mView?.getPropertyUserListSuccess(data)
            }
        }
    }
}